<?php
/**
 * Created by Rudy.
 * Author: Rudy
 * Date: 2020/11/28
 * Time: 23:18
 */

namespace App\Models\Constant;


class FileConstant {

    const CLASSIFY_ID_ALL = 38;
    const CLASSIFY_ID_FREE = 40;

    const FILE_TYPE_PPT = 'ppt';
    const FILE_TYPE_PPTX = 'pptx';
    const FILE_TYPE_DOC = 'doc';
    const FILE_TYPE_DOCX = 'docx';
    const FILE_TYPE_PDF = 'pdf';
    const FILE_TYPE_ZIP = 'zip';
    const FILE_TYPE_RAR = 'rar';
    const FILE_TYPE_JPG = 'jpg';
    const FILE_TYPE_PNG = 'png';
    const FILE_TYPE_WEBP = 'webp';
    const FILE_TYPE_JPEG = 'jpeg';


    const MAP_FILE_TYPE = [
        self::FILE_TYPE_PPT => 'ppt',
        self::FILE_TYPE_PPTX => 'pptx',
        self::FILE_TYPE_DOC => 'doc',
        self::FILE_TYPE_DOCX => 'docx',
        self::FILE_TYPE_PDF => 'pdf',
        self::FILE_TYPE_ZIP => 'zip',
        self::FILE_TYPE_RAR => 'rar',
        self::FILE_TYPE_JPG => 'jpg',
        self::FILE_TYPE_PNG => 'png',
        self::FILE_TYPE_WEBP =>'webp',
        self::FILE_TYPE_JPEG => 'jpeg',
    ];


}
